package sctu.edu.java.year2016.team01.xuhanmei.day20160531.KnowMap;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2016/5/31.
 */
public class KnowMap {
    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
        map.put("1", "w");
        map.put("2", "s");
        map.put("3", "p");
        map.put("4", "k");
        for (int i = 1; i < 5; i++) {
            System.out.println("第" + i + "个元素是：" + map.get("" + i + ""));
        }
    }
}

